<!DOCTYPE html>
<html
  layout:decorator="components/layout"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  xmlns:th="http://www.thymeleaf.org"
>
<head>
  <title>工单指令管理</title>
</head>
<body>
<div
  layout:fragment="content"
  id="app" v-cloak
>
  <div class="container">

    <div class="myHeader">
      <div class="myHeader-title">
        工单指令管理
      </div>
      <div class="myHeader-tool">

        <el-button
          type="primary"
          size="mini"
          @click="_forward('/command-manage/add/admin_filenotify_add')"
          v-realm="'regulatory-directive:ins-work-order:edit'"
        >新增指令
        </el-button>

        <el-button type="primary" size="mini" icon="el-icon-search" @click="toggle">高级搜索</el-button>

      </div>
    </div>

    <el-row>
      <el-form label-width="100px" class="container-search" v-show="formShow">
        <el-row :gutter="10">
          <el-col :span="9">
            <el-form-item label="指令ID:">
              <el-input
                v-model="form.id"
                clearable
                show-word-limit
                maxlength="64"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="3">
            <el-form-item label-width="0">
              <rx-search-action
                v-model="form.idAction"
              ></rx-search-action>
            </el-form-item>
          </el-col>

          <el-col :span="9">
            <el-form-item label="经营者ID:">
              <el-input
                v-model="form.idcId"
                clearable
                show-word-limit
                maxlength="128"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="3">
            <el-form-item label-width="0">
              <rx-search-action
                v-model="form.idcIdAction"
              ></rx-search-action>
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="指令规则:">
              <el-input
                v-model="form.valueStart"
                clearable
                show-word-limit
                maxlength="128"
              ></el-input>
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="生成时间:">
              <el-date-picker
                v-model="form.timeArray"
                type="daterange"
                range-separator="至"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
              >
              </el-date-picker>
            </el-form-item>
          </el-col>

        </el-row>

        <div style="text-align:center; margin-bottom:20px">
          <el-button type="primary" size="medium" @click="searchPage">查 找</el-button>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <el-button type="primary" size="medium" @click="resetPage">重 置</el-button>
        </div>
      </el-form>
    </el-row>

    <my-table
      :data="page.records"
      :columns="columns"
      @handle-selection-change="selection"
    >
      <template #operating="row">
        <el-button
          type="primary"
          size="mini"
          @click.stop.prevent="forwardUpdate(row.row)"
          v-realm="'regulatory-directive:ins-work-order:edit'"
        >修改
        </el-button>
      </template>
    </my-table>
    <div class="pagination">
      <el-pagination
        background
        @size-change="changeSize"
        @current-change="goto"
        :current-page="page.current"
        :page-sizes="[10, 20, 30]"
        :page-size="page.size"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total"
      >
      </el-pagination>
      <div class="pagination-tool">
        <el-button
          type="danger"
          size="mini"
          @click="deleteSelected"
          v-realm="'regulatory-directive:ins-work-order:edit'"
        >删除
        </el-button>
      </div>
    </div>
  </div>
</div>
<div layout:fragment="js">
  <script src="/static/js/module/command-manage/api/insWorkOrderApi.js"></script>
  <script src="/static/js/module/basic-data/api/baseHouseInfoApi.js"></script>
  <script src="/static/js/module/command-manage/admin_filenotify.js"></script>
</div>
</body>
</html>
